package com.ims.entity;

import org.springframework.format.annotation.DateTimeFormat;
import sun.awt.SunHints;

import javax.persistence.*;
import java.time.temporal.ValueRange;
import java.util.Date;

@Entity
@Table(name = "stu_loan")
public class StudentLoanEntity {
    @Id
    private Long id;

   @OneToOne
   @JoinColumn(name = "stu_id")
   private StudentInfoEntity student;

    public StudentInfoEntity getStudent() {
        return student;
    }

    public void setStudent(StudentInfoEntity student) {
        this.student = student;
    }

    private String stu_source;
    private Integer amount;
    private String time;
    private Integer sum;
    private String note; // 备注

    public String getNote() {
        return note;
    }

    public void setNote(String note) {
        this.note = note;
    }

    public StudentLoanEntity() { }


    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getStu_source() {
        return stu_source;
    }

    public void setStu_source(String stu_source) {
        this.stu_source = stu_source;
    }

    public Integer getAmount() {
        return amount;
    }

    public void setAmount(Integer amount) {
        this.amount = amount;
    }

    public String getTime() {
        return time;
    }

    public void setTime(String time) {
        this.time = time;
    }

    public Integer getSum() {
        return sum;
    }

    public void setSum(Integer sum) {
        this.sum = sum;
    }
}
